// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, deleteRequest } from '@/libs/axios';

//获取代理商查看商家充值管理列表数据
export const getBusiness = (params) => {
  return getRequest(`/paymanage/business/getByPage`, params)
}
//获取代理商查看商家充值管理商家详情数据列表
export const getBusinessByPage = (params) => {
  return getRequest(`/paymanage/business/getBusinessByPage`, params)
}
//获取平台查看代理商充值管理列表数据
export const getAgent = (params) => {
  return getRequest(`/paymanage/agent/getByPage`, params)
}
//获取平台查看代理商充值管理代理商详情数据列表
export const getAgentByPage = (params) => {
  return getRequest(`/paymanage/agent/getAgentByPage`, params)
}
// //字典添加
// export const saveDict = (params) => {
//   return postRequest('/dictionary', params)
// }

// //删除字典
// export const delDict = (id) => {
//   return deleteRequest(`/dictionary/${id}`)
// }
// //修改字典
// export const updateDict = (params, id) => {
//   return putRequest(`/dictionary/update/${id}`, params)
// }

// //获取字典列表数据
// export const getDictByCode = (dictCode) => {
//   return getRequest(`/dictionary/getDict/${dictCode}`)
// }